package cn.fsd.domain;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable{
    private String order_id;

    private String customer_id;

    private String operator_id;

    private String order_status;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date order_date;

    private String commodity_id;

    private Integer commodity_num;

    private Long order_total_amount;

    private String note;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date delivery_date;

    private String order_type;

    private Integer address_choice;

    private Integer is_invoice;

    private String delivery_status;

}